<?php
namespace app\common\lib;

/** 
 * 设置有效时间
 */
class ExpiresTime{
	public static function userLoginExpiresTime($type = 2){
		$type = !in_array($type, [1,2]) ? 2 : $type;
		if($type == 1){
			$day = 1;
		}elseif ($type == 2) {
			$day = 3;
		}
		return $day * 24 * 3600;
	}
}